<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
    <title></title>
</head>
<body>

<div id="i1">欢迎领导莅临指导</div>

<script>
    function func() {
        //根据ID获取指定标签的内容，用于局部变量接收
        var tag = document.getElementById('i1');
        //获取标签内部的内容
        var content = tag.innerText;

        var f = content.charAt(0);
        var l = content.substring(1,content.length);

        var new_content = l + f;

        tag.innerText = new_content;
    }
    setInterval('func()',1000)
</script>

</body>
</html>